﻿using System;

namespace Putta.KeyPass.DatabaseProviders
{
    public class DatabaseProviderProperties
    {
        private string providerName;
        private Uri iconUri;
        private Uri setupPage;

        public DatabaseProviderProperties()
        {
        }

        public DatabaseProviderProperties(string providerName, Uri iconUri, Uri setupPage)
        {
            if (string.IsNullOrEmpty(providerName))
                throw new ArgumentNullException("providerName");

            if (iconUri == null)
                throw new ArgumentNullException("iconUri");

            if (setupPage == null)
                throw new ArgumentNullException("setupPage");

            this.providerName = providerName;
            this.iconUri = iconUri;
            this.setupPage = setupPage;
        }

        public Uri IconUri
        {
            get { return this.iconUri; }
            set { this.iconUri = value; }
        }

        public string ProviderName
        {
            get { return this.providerName; }
            set { this.providerName = value; }
        }

        public Uri SetupPage
        {
            get { return this.setupPage; }
            set { this.setupPage = value; }
        }
    }
}
